package com.itheima.tcpcomcn;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class ServerDemo {
    public static void main(String[] args) throws IOException {
        //创建服务器对象
        ServerSocket serverSocket = new ServerSocket(10080);
        //等待发送端链接
        while (true) {
            Socket accept = serverSocket.accept();
            //获得发送端的数据
            ThreadServerDemo threadServerDemo = new ThreadServerDemo(accept);
        }
        //serverSocket.close();

    }
}
